﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;
public partial class Deparment_Filse_SelectSend : System.Web.UI.Page
{
    private string _accountid = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumDeparment);
        if (HZ.MBSM.BLL.Login.CheckAssert(_AccountType))
        {
            HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
            _accountid = _Account.AccountId.ToString();
            if (!IsPostBack)
            {
                string str = "select Dwname,usercode,accountid from v_account where type=15 and accountid<>" + _accountid;
                Db dd = new Db();
                GridView1.DataSource = dd.DataReader(str);
                GridView1.DataBind();
                dd.Close();
            }
 
        }
    }
}
